import { BasicColumn, FormSchema } from '/@/components/Table';

export const tableColumns: BasicColumn[] = [
  {
    title: 'ID',
    dataIndex: 'id',
    flag: 'INDEX',
    fixed: 'left',
    width: 150,
    sorter: true,
  },
  {
    title: '名称',
    dataIndex: 'nickname',
    width: 150,
    sorter: true,
  },
  {
    title: '公网地址',
    dataIndex: 'public_address',
  },
  {
    title: '内网地址',
    dataIndex: 'local_address',
  },
];

export const tableSearch: FormSchema[] = [
  {
    field: 'ID',
    component: 'Input',
    label: 'ID',
  },
  {
    field: 'public_address',
    component: 'Input',
    label: '公网地址',
  },
  {
    field: 'nickname',
    component: 'Input',
    label: '名称',
  },
  {
    field: 'local_address',
    component: 'Input',
    label: '内网地址',
  },
];
